#include "NeoLineEdit.h"
#include "private/NeoLineEditPrivate.h"
#include "style/NeoLineEditStyle.h"

NeoLineEdit::NeoLineEdit(QWidget *parent)
    : QLineEdit(parent),
      d_ptr(new NeoLineEditPrivate())
{
    NEO_PUBLIC_POINT(NeoLineEdit)
    d->q_ptr = this;
    this->setClearButtonEnabled(true);
    this->setStyle(new NeoLineEditStyle(this->style()));
}

NeoLineEdit::NeoLineEdit(const QString &text, QWidget *parent)
    : QLineEdit(text, parent),
      d_ptr(new NeoLineEditPrivate())
{
    NEO_PUBLIC_POINT(NeoLineEdit)
    d->q_ptr = this;
    this->setClearButtonEnabled(true);
    this->setStyle(new NeoLineEditStyle());
}

NeoLineEdit::~NeoLineEdit() = default;